package com.tianji.learning.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author xzh
 * @since 2024-03-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("noes")
public class Noes implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键，笔记的id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 笔记的内容
     */
    private String content;

    /**
     * 所属课程id
     */
    private Long courseId;

    /**
     * 所属课程章id
     */
    private Long chapterId;

    /**
     * 所属课程节id
     */
    private Long sectionId;

    /**
     * 写笔记学员id
     */
    private Long authorId;

    /**
     * 是否私密 默认false
     */
    private Boolean isPrivate;

    /**
     * 是否被隐藏，默认false
     */
    private Boolean hidden;

    /**
     * 点赞数量
     */
    private Integer likedTimes;

    /**
     * 采集数量
     */
    private Integer usedTimes;

    /**
     * 视频的当前观看时间点，单位秒
     */
    private Integer noteMoment;

    /**
     * 写笔记时间
     */
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;


}
